package com.stu.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class User {
    private Integer userid;

    private String username;

    private String password;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date regtime;

    private String vip;

    private Float money;

    private Integer orderid;

    private String heading;

    private Integer cash;

    private String phone;

    private String email;

    private Integer packetid;

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getRegtime() {
        return regtime;
    }

    public void setRegtime(Date regtime) {
        this.regtime = regtime;
    }

    public String getVip() {
        return vip;
    }

    public void setVip(String vip) {
        this.vip = vip;
    }

    public Float getMoney() {
        return money;
    }

    public void setMoney(Float money) {
        this.money = money;
    }

    public Integer getOrderid() {
        return orderid;
    }

    public void setOrderid(Integer orderid) {
        this.orderid = orderid;
    }

    public String getHeading() {
        return heading;
    }

    public void setHeading(String heading) {
        this.heading = heading;
    }

    public Integer getCash() {
        return cash;
    }

    public void setCash(Integer cash) {
        this.cash = cash;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getPacketid() {
        return packetid;
    }

    public void setPacketid(Integer packetid) {
        this.packetid = packetid;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", regtime=" + regtime +
                ", vip='" + vip + '\'' +
                ", money=" + money +
                ", orderid=" + orderid +
                ", heading='" + heading + '\'' +
                ", cash=" + cash +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", packetid=" + packetid +
                '}';
    }
}